home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / MacSNMP / SNMP Agents Dev Kit / Sample Agent / Makefile next >
Encoding:
Makefile  |  1994-11-21  |  4.3 KB  |  147 lines  |  [TEXT/MPS ]

  1. #
  2. #     Makefile to build the SNMP Sample Agent
  3. #
  4. #     Copyright:    © 1992-94 by Apple Computer, Inc., all rights reserved.
  5. #
  6.  
  7. :Objects:    ƒ :Sources:
  8.  
  9. TARGETS = :Objects:SampleAgent.o :Objects:SampleAgent.clf.o ∂
  10.     :Objects:SampleAgent.cln.o :Sources:SampleAgent.r ∂
  11.     :Objects:SampleAgent.RSRC ":Built:SNMP Sample Agent"
  12.  
  13. DOT_H = :Sources:SampleAgent.h :Sources:SampleVar.h
  14.  
  15. DOT_R = :Sources:SampleAgent.r
  16.  
  17. SRCS = :Sources:SampleAgent.cp
  18.  
  19. # For :Objects:SampleAgent.o
  20. OBJS_00 = :Objects:SampleAgent.cp.o
  21.  
  22. # For :Objects:SampleAgent.RSRC
  23. LIBS_04 = :Objects:SampleAgent.o ::Libraries:SNMPLibrary.clf.o ∂
  24.     ::Libraries:LibraryManager.o "{Libraries}Runtime.o" "{Libraries}Interface.o"
  25.  
  26. # For ":Built:SNMP Sample Agent"
  27. RES_05 = :Sources:SampleAgent.r
  28.  
  29. # For :Objects:SampleAgent.clf.o
  30. EXDEPS_01 = :Objects:SampleAgent.RSRC
  31.  
  32. # For :Objects:SampleAgent.cln.o
  33. EXDEPS_02 = :Objects:SampleAgent.RSRC
  34.  
  35. # For :Sources:SampleAgent.r
  36. EXDEPS_03 = :Objects:SampleAgent.RSRC
  37.  
  38. # For :Objects:SampleAgent.RSRC
  39. EXDEPS_04 = :Sources:SampleAgent.exp ::Tools:LibraryBuilder
  40.  
  41. StdAIncludes = -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i ":Sources:" -i "{AIncludes}"
  42. StdCIncludes = -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i ":Sources:" -i "{CIncludes}"
  43. StdCPIncludes = -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i ":Sources:" -i "{CIncludes}"
  44. CPlus        = CPlus -sym on,nolines -model far -mf -b2 -opt full -w1 -z15 -z17 {StdCPIncludes}
  45. LIB          = Lib {SymbolOption}
  46. LINK         = Link {SymbolOption} {ModelOption}
  47. COUNT        = Count
  48. COUNTOPTS    = 
  49. CTAGS        = Ctags
  50. CTAGSOPTS    = -p -local -update
  51. DELETE       = Delete
  52. DELETEOPTS   = -i
  53. FILES        = Files
  54. FILESOPTS    = -l
  55. LIBOPTS      = 
  56. LINKOPTS     = 
  57. MAKEFILE     = Makefile
  58. PRINT        = Print
  59. PRINTOPTS    = 
  60. REZ          = Rez
  61. SETFILE      = SetFile
  62. SETFILEOPTS  = -t 'MPST' -c 'MPS '
  63.  
  64.  
  65. AOptions = -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i :Sources: ∂
  66.     -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i :Sources:
  67.  
  68. COptions = -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i :Sources: ∂
  69.     -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i :Sources:
  70.  
  71. POptions = -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i :Sources:
  72.  
  73. ROptions = -a -i "::Library Manager Interfaces:" -i "::SNMP Interfaces:" -i :Sources:
  74.  
  75. all    ƒ {TARGETS}
  76.  
  77. :Objects:SampleAgent.o    ƒ {OBJS_00}
  78.     {LIB} {LIBOPTS} -o {Targ} {OBJS_00}
  79.  
  80.  
  81. :Objects:SampleAgent.clf.o    ƒ {EXDEPS_01}
  82.     SetFile -m . {Targ}
  83.  
  84.  
  85. :Objects:SampleAgent.cln.o    ƒ {EXDEPS_02}
  86.     SetFile -m . {Targ}
  87.  
  88.  
  89. :Sources:SampleAgent.r    ƒ {EXDEPS_03}
  90.     
  91.  
  92.  
  93. :Objects:SampleAgent.RSRC    ƒ {LIBS_04} {EXDEPS_04}
  94.     BuildSharedLibrary ":Objects:SampleAgent.o" ∂
  95.     -lib ":Objects:SampleAgent.RSRC" ∂
  96.     -far ":Objects:SampleAgent.clf.o" ∂
  97.     -near ":Objects:SampleAgent.cln.o" ∂
  98.     -exp ":Sources:SampleAgent.exp" -restype code -resid 0 ∂
  99.     -i "::SNMP Interfaces:" ∂
  100.     -i ":Sources:" ∂
  101.     -i "::Library Manager Interfaces:"     ∂
  102.     ":Objects:SampleAgent.clf.o" ∂
  103.     "::Libraries:SNMPLibrary.clf.o" ∂
  104.     "::Libraries:LibraryManager.o" ∂
  105.     "{Libraries}Runtime.o" ∂
  106.     "{Libraries}Interface.o"
  107.  
  108.  
  109. ":Built:SNMP Sample Agent"    ƒƒ {RES_05}
  110.     {REZ} -t libr -c snmp -s :Objects: -i "::Library Manager Interfaces:" ∂
  111.         -i "::SNMP Interfaces:" -i :Sources: -o {Targ} {RES_05}
  112.  
  113. ":Built:SNMP Sample Agent"    ƒƒ {RES_05}
  114.     {SETFILE} -a ib {Targ}
  115.  
  116.  
  117.  
  118. clean    ƒ
  119.     {DELETE} {DELETEOPTS} {OBJS_00}
  120.  
  121. clobber    ƒ clean
  122.     {DELETE} {DELETEOPTS} {TARGETS}
  123.  
  124. count    ƒ
  125.     {COUNT} {COUNTOPTS} {DOT_H} {DOT_R} {SRCS}
  126.  
  127. files    ƒ
  128.     {FILES} {FILESOPTS} {TARGETS} {MAKEFILE} {DOT_H} {DOT_R} {SRCS} {OBJS_00}
  129.  
  130. print    ƒ
  131.     {PRINT} {PRINTOPTS} {MAKEFILE} {DOT_H} {DOT_R} {SRCS}
  132.  
  133. tags    ƒ {DOT_H} {SRCS}
  134.     {CTAGS} {CTAGSOPTS} {C_INCDIRS} {NewerDeps}
  135.  
  136.  
  137. :Objects:SampleAgent.cp.o ƒ ∂
  138.         "{CIncludes}Types.h" "{CIncludes}Resources.h" "{CIncludes}Files.h" ∂
  139.         "{CIncludes}OSUtils.h" "{CIncludes}SegLoad.h" "{CIncludes}ToolUtils.h" ∂
  140.         "{CIncludes}Quickdraw.h" "{CIncludes}String.h" ∂
  141.         "::SNMP Interfaces:SNMP.h" "::SNMP Interfaces:SNMPVarTypes.h" ∂
  142.         "::SNMP Interfaces:TSNMP.h" "::Library Manager Interfaces:LibraryManager.h" ∂
  143.         "{CIncludes}StdDef.h" "{CIncludes}Memory.h" "{CIncludes}Aliases.h" ∂
  144.         "{CIncludes}AppleTalk.h" "::Library Manager Interfaces:LibraryManagerUtilities.h" ∂
  145.         "::Library Manager Interfaces:LibraryManagerClasses.h" "{CIncludes}SetJmp.h" ∂
  146.         "{CIncludes}Strings.h" :Sources:SampleAgent.h :Sources:SampleVar.h
  147.